package com.example.xt.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 *
 * </p>
 *
 * @author ${author}
 * @since 2022-03-05
 */
@Getter
@Setter
public class Orders implements Serializable {

  private static final long serialVersionUID = 1L;

  /**
   * 总价
   */
  private String price;
  /**
   * 总利润
   */
  private String profit;
    /**
     * 订单编号
     */
    @TableId(value = "medicine", type = IdType.AUTO)
    private Integer medicine;

    /**
     * 订单时间
     */
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd日 HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime time;
    /**
     * 是否退货
     */
    private String rent;


}
